cmake_minimum_required(VERSION 3.10)


project(rpc_client)

set(SRCS rpc_main.cpp
    rpc_client.cpp
)

include_directories(../)

# 在指定目录下查找指定库，并把库的绝对路径存放到变量里
find_library(LIBS nanomsg HINTS ${PROJECT_SOURCE_DIR}/../lib)

add_executable(rpc_client ${SRCS})

target_link_libraries(rpc_client ${LIBS})

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../bin)